/* $Id:chatview.h jjs $ */
/*
   Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl>
   Part of the Moros Project http://moros.sourceforge.net/

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License.
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY.

   See the COPYING file for more details.
*/

#ifndef CHATVIEW_H
#define CHATVIEW_H

#include <gtkmm.h>
#include <libglademm.h>
#include <sigc++/sigc++.h>
#include <sigc++/slot.h>

class ChatView : public Gtk::TextView {
  private:

  protected:
    Glib::RefPtr<Gnome::Glade::Xml> m_refGlade;
    Gtk::TextView* textview;

  public:
    ChatView(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade):
    Gtk::TextView(cobject),
    m_refGlade(refGlade) {
        //m_refGlade->get_widget("chat_text", textview);
    }
    ChatView() {
        textview=new TextView();
    };
    virtual ~ChatView();
    virtual bool on_button_press_event (GdkEventButton* event);
    sigc::signal<void, GdkEventButton*> signal_menu;
};

#endif // CHATVIEW_H
